﻿<Window 
  x:Class="iTFF.WPF.View.MainWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:win="clr-namespace:iTFF.WinFormsWrappers;assembly=iTFF.WinFormsWrappers"
  xmlns:ui="clr-namespace:iTFF.WPF.UI"
  xmlns:l="clr-namespace:iTFF.WPF.Resources.Languages"
  Title="iTunes Fast Forward"
  Icon="../Resources/Icons/iTFF.ico"
  WindowStartupLocation="CenterScreen"
  WindowState="{Binding WindowState}"
  ShowInTaskbar="{Binding ShowInTaskbar}"
  Width="650"
  Height="750"
  Background="{x:Static SystemColors.ControlBrush}"
  Style="{StaticResource WindowStyle}"
  >

  <DockPanel>
    
    <win:NotifyIcon
      x:Name="notifyIcon"
      Text="{Binding CP.NotifyIconText}" 
      Icon="../Resources/Icons/iTFF.ico" 
      BalloonTipIcon="{Binding CP.BalloonTipIcon}"
      BalloonTipTitle="{Binding CP.BalloonTipTitle}"
      BalloonTipText="{Binding CP.BalloonTipText}"
      ui:NotifyIconBehaviours.MouseDoubleClickCommand="{Binding NotifyIconMouseDoubleClickCommand}"
      >
      <win:NotifyIcon.ContextMenu>
        <ContextMenu>
          <MenuItem Header="{x:Static l:Strings.GlobalHotKeys}" Command="{Binding ShowGlobalHotKeysCommand}" />
          <MenuItem Header="{x:Static l:Strings.MainWindowGetArtwork}" Command="{Binding ShowArtworkCommand}" />
          <Separator />
          <MenuItem Header="{x:Static l:Strings.MainWindowShowLyrics}" Command="{Binding ShowLyricsCommand}" />
          <MenuItem Header="{x:Static l:Strings.MainWindowDownloadTags}" Command="{Binding DownloadTagsCommand}" />
          <Separator />
          <MenuItem Header="{x:Static l:Strings.MainWindowPreferences}" Command="{Binding ShowPreferencesCommand}" />
          <Separator />
          <MenuItem Header="{x:Static l:Strings.MainWindowExit}" Command="{Binding CloseCommand}" />
        </ContextMenu>
      </win:NotifyIcon.ContextMenu>
    </win:NotifyIcon>

    <TabControl ItemsSource="{Binding TabItems}" Margin="10" IsSynchronizedWithCurrentItem="True" />

  </DockPanel>
</Window>
